const express = require('express');
const router = express.Router();
const { auth } = require('../middleware/auth');
const {
  initializeProgress,
  getProgress,
  updateProgress,
  getStats
} = require('../controllers/progressController');

// 初始化学习进度
router.post('/initialize', auth, initializeProgress);

// 获取学习进度
router.get('/', auth, getProgress);

// 获取学习统计
router.get('/stats', auth, getStats);

// 更新学习进度
router.put('/:dayNumber', auth, updateProgress);

module.exports = router; 